import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        // 音乐ID
        musicId: "455140272",
        // 排行榜显示
        num: 0
    },
    mutations: {
        // 修改音乐ID
        getmusicId(state, newmusicId) {
            state.musicId = newmusicId
        },
        switchnum(state, num) {
            state.num = num
        }
    },
    actions: {},
    modules: {}
})